UPDATE enfants SET matricule = concat(left(trim(nom),1),left(trim(postnom),1),lpad( id,3,0),'-21'); 